package com.basic.modules.nykf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.basic.modules.sys.entity.SysFileEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;

@Data
@TableName("n_ykf_file")
public class FileNewEntity {

    @TableId
    private Long ykfFileId;

    // 业务关联id
    private Long glId;

    // 模块类型
    private String mklx;

    private Long fileId;

    // 对应文件表对象
    private SysFileEntity sysFileEntity;

    private Long createUserId;

    // 创建人
    private String createUserName;

    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
